//引入common.js的方法
import requestOfGet from './commonGet'

export function getRequest(url) {
    return new Promise((resolve, reject) => {
        //成功处理
        requestOfGet(url).then(res => resolve(res))
            //失败抛出错误
            .catch(error => reject(error))
    })
}
